package com.efeichong.project.service;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * @author lxk
 * @date 2020/12/3
 * @description
 */
public interface OssService {
    /**
     * 文件上传
     *
     * @param file
     * @param folderName
     * @param suffix
     * @return
     */
    String upload(MultipartFile file, String folderName, String suffix);

    /**
     * 文件下载
     *
     * @param url
     * @param response
     */
    void download(String url, HttpServletResponse response);

    /**
     * 文件删除
     *
     * @param url
     */
    void delete(String url);
}
